package bookshop.domain;

public class CartItem extends ValueObject {

	private Book Book; // 该条目所关联的图书
	private Integer amount; // 该书购买的数量
	private Double totalPrice; // 该条目总价格

	public Book getBook() {
		return Book;
	}

	public void setBook(Book book) {
		Book = book;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

}
